]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceAnimation: Support multiple screens
authorAlexander Mikhaylenko <exalm7659@gmail.com>
Sat, 20 Jun 2020 19:43:06 +0000 (00:43 +0500)
committerMarge Bot <marge-bot@gnome.org>
Tue, 2 Feb 2021 19:35:07 +0000 (19:35 +0000)
commitbca654851cfa00340b2c7e7f68bd88e710509cb3
treeb21ddc0b058ed596078b19c89d3adfdb22a268df
parent8eba75993240807c8bf4bbd814b302ad0cfb7432
workspaceAnimation: Support multiple screens

Currently, there's one animation for the whole canvas. While it looks fine
with just one screen, it causes windows to move between screens when
switching workspaces. Instead, have a separate animation on each screen,
and sync their progress so that at any given time the progress "fraction"
is the same between all screens. Clip all animations to their screens so
that the windows don't leak to other screens.

If a window is placed between every screen, can end up in multiple
animations, in that case each part is still animated separately.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1213

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1326>
js/ui/workspaceAnimation.js